/*
 * Diagrama.java
 *
 * Created on 20 de Maio de 2007, 23:52
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.jerm.Interface;
import java.awt.BorderLayout;
import javax.swing.*;

import org.jerm.Interface.JGraph_Diagrama.Diagrama_JGraph;
import org.jerm.Interface.JGraph_Diagrama.MyGraph;
import org.jgraph.JGraph;

/**
 *
 * @author Tiago Falcao
 */
public class Diagrama_Aba extends JPanel//extends JSplitPane
{
    private MyGraph graph;
    
    private Diagrama_Desktop Diagrama_Desktop;
    
    /** Creates a new instance of Diagrama */
    public Diagrama_Aba (Principal Principal)
    {
        //super(JSplitPane.VERTICAL_SPLIT);
        super(new BorderLayout());
        
        Diagrama_Desktop=new Diagrama_Desktop(Principal);
        graph=Diagrama_Desktop.getGraph();
        
        add(Diagrama_Desktop.getToolBar(), BorderLayout.PAGE_START);
        add(Diagrama_Desktop, BorderLayout.CENTER);
        
        //resetToPreferredSizes ();
    }
    
    public String getToolTip(){
        return "<html>Blue Wavy Line border art crew:<br>&nbsp;&nbsp;&nbsp;Bill Pauley<br>" +
                "&nbsp;&nbsp;&nbsp;Cris St. Aubyn<br>" +
                "&nbsp;&nbsp;&nbsp;Ben Wronsky<br>" +
                "&nbsp;&nbsp;&nbsp;Nathan Walrath<br>" +
                "&nbsp;&nbsp;&nbsp;Tommy Adams, special consultant</html>";
    }
    
    public MyGraph getGraph(){
        return graph;
    }
    
}
